package cn.dengta.webapp.trade.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.common.model.ValueProxyImpl;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum UserLimitType implements ValueProxyImpl<UserLimitType, Integer> {

	/** 提现类型 */
	CASH(0, "提现类型"),
	/** VIP列表 */
	VIP_LIST(1, "VIP列表"),
	/** 用户黑名单 */
	USER(2, "用户黑名单"),
	/** IOS审核环境白名单 */
	WHITE_LIST(3, "IOS审核环境白名单"),

	;

	@EnumValue
	public Integer value;
	public String label;
	final ValueProxy<UserLimitType, Integer> proxy;

	UserLimitType(Integer value, String label) {
		this.value = value;
		this.label = label;
		this.proxy = new ValueProxy<>(this, value, label);
	}

	public static final UserLimitType[] CACHE = values();

	public static UserLimitType of(Integer value) {
		return CASH.getValueOf(value);
	}

}
